package com.example.mycarcalling.service.impl;

import com.example.mycarcalling.bean.Netease;
import com.example.mycarcalling.dao.NeteaseMapper;
import com.example.mycarcalling.service.NeteaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("neteaseService")

@Transactional(rollbackFor = Exception.class)
public class NeteaseServiceImpl implements NeteaseService {

    @Resource
    NeteaseMapper neteaseMapper;

    @Override
    public Netease getUserNetease(Long userId) {

        return neteaseMapper.selectByUserId(userId);
    }
}
